package com.danger.Fragment;

/**
 * Created by 俊 on 2016/6/2.
 */
public abstract class BaseFragment extends BackHandledFragment {

    private boolean hadIntercept;

    @Override
    public boolean onBackPressed() {
        if (hadIntercept) {
            return false;
        } else {
            hadIntercept = true;
            return true;
        }
    }

    public abstract void initView();

    public abstract void initEvent();
}
